import request from '@/utils/request'

// 导入
export function importData (data) {
  return request({
    url: '/groundMotionParameters/importData',
    method: 'post',
    data: data
  })
}

// 分页
export function queryMotionParameters (query) {
  return request({
    url: '/groundMotionParameters/queryMotionParameters',
    method: 'get',
    params: query
  })
}

//根据id查询
export function getGmpById (query) {
  return request({
    url: '/groundMotionParameters/getGmpById',
    method: 'get',
    params: query
  })
}

//撤设或新设
export function demolitionOrSave (data) {
  return request({
    url: '/groundMotionParameters/demolitionOrSave',
    method: 'post',
    data: data
  })
}

// 恢复
export function restoreData (query) {
  return request({
    url: '/groundMotionParameters/restoreData',
    method: 'get',
    params: query
  })
}

// 导出
export function exportData (query) {
  return request({
    url: '/groundMotionParameters/exportData',
    method: 'get',
    params: query
  })
}

//删除
export function deleteData (query) {
  return request({
    url: '/groundMotionParameters/deleteData',
    method: 'get',
    params: query
  })
}

//根据省市县查街道和乡镇个数
export function getNumberByRegion (query) {
  return request({
    url: '/groundMotionParameters/getNumberByRegion',
    method: 'get',
    params: query
  })
}

//地图圈选查询
export function queryResultsByGeomText(query) {
  return request({
    url: '/groundMotionParameters/getByGeom',
    method: 'get',
    params: query
  })
}




